<?php
session_start();
$logout = (int)$_GET['logout'];
if ($logout) {
	unset($_SESSION['admin']);
	header("location:login.php",302);
}else{
	unset($_SESSION['admin']);
	header("location:login.php",302);
}